﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace AssetsSys.WebApi.Models.Users
{
    /// <summary>
    /// 添加用户
    /// </summary>
    public class CreateUserViewModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        public string UserName { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [Required]
        [EmailAddress]
        public string Email { get; set; }
        /// <summary>
        /// 密码(默认000000)
        /// </summary>
        public string PassWord { get; set; } = "670b14728ad9902aecba32e22fa4f6bd";
        /// <summary>
        /// 手机号
        /// </summary>
        [Required]
        [Phone]
        public string Phone { get; set; }
        /// <summary>
        /// 部门id
        /// </summary>
        [Required]
        public Guid DepartmentId { get; set; }
    }
}